<?php
namespace App\Models\ActivityPrize;

use App\Support\Database\Eloquent\UuidModel;

/**
 * Class ActivityPrize
 * 活动奖品
 * @package App\Models\ActivityPrize
 */
class ActivityPrize extends UuidModel
{
    protected $fillable = array('id','activity_id','surplus', 'prize_id','max_amount','winning_limit','stock_limit','winning_probability');
    protected $guarded = ['awarding_number' ,'not_awarding_number'];
    public function prize()
    {
        return $this->belongsTo('App\Models\Prize\Prize', 'prize_id');
    }
}
